package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //分页查询/模糊查询
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);

    //新增
    void save(Dish dish);

    //回显
    Dish findById(Long id);

    //修改
    void update(Dish dish);

    //修改商品状态
    void updateStatus(Integer status, Long[] ids);

    //批量删除
    ResultInfo deleteById(Long[] ids);

    //回显
    List<Dish> findBycategoryId(Long categoryId,String name);


}
